package daer;

import java.util.ArrayList;

public class FruitTest {
    public static void main(String[] args) {

        Apple apple = new Apple();
        Banana banana = new Banana();
        Pear pear = new Pear();

        apple.setName("苹果");
        apple.setArea("昭通");
        apple.setPricde(2);
        banana.setName("香蕉");
        banana.setArea("广西");
        banana.setPricde(3);
        pear.setName("梨");
        pear.setArea("山东");
        pear.setPricde(5);

        System.out.println(apple.getName());
        System.out.println(banana.getArea());
        System.out.println(pear.getPricde());
    }
}
